package com.bkaka.dao;

import com.bkaka.entity.ExamPaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/19.
 */
public interface ExamPaperDao {

    void create(ExamPaper paper);

    void update(ExamPaper paper);

    List<ExamPaper> list(Integer userId);

    List<ExamPaper> grade(Integer userId);

    ExamPaper findById(Integer paperId);

//    List<ExamPaper> findAll(Integer userId, Integer paperId, Integer subjectId);
    List<ExamPaper> findAll(@Param("userId") Integer userId, @Param("paperId") Integer paperId, @Param("subjectId") Integer subjectId);

    List<ExamPaper> countInit(@Param("userId") Integer userId);
}
